﻿<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">

  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="/">
    <Addresses>
      <xsl:for-each select="DocumentElement/CustomerAddress">
        <Address>
          <CustomerID>
            <xsl:value-of select="CUSTNMBR"/>
          </CustomerID>
          <AddressID>
            <xsl:value-of select="ADRSCODE"/>
          </AddressID>
          <Contact>
            <xsl:value-of select="CNTCPRSN"/>
          </Contact>
          <Address1>
            <xsl:value-of select="ADDRESS1"/>
          </Address1>
          <State>
            <xsl:value-of select="STATE"/>
          </State>
          <Zip>
            <xsl:value-of select="ZIP"/>
          </Zip>
        </Address>
      </xsl:for-each>
    </Addresses>
  </xsl:template>
</xsl:stylesheet>
